//
//  NSURL+Tools.h
//  Pods
//
//  Created by jiaxuzhou on 2017/7/13.
//
//

#import <Foundation/Foundation.h>
#import "NSObject+Tools.h"


#define MPT_URL_Class(url) MPT_Object_Is_Class(url,[NSURL class])

#define MPT_URL_Is_Valid(url) ((MPT_Object_Not_Null(url)) && (MPT_URL_Class(url)) && MPT_Str_Is_Valid([url absoluteString]))

#define MPT_URL_Not_Valid(url) ((MPT_Object_Is_Null(url)) || (!MPT_URL_Class(url)) || MPT_Str_Not_Valid([url absoluteString]))



@interface NSURL (Tools)

- (NSURL *)mp_UrlByAppendingQueryString:(NSString *)queryString;

@end
